﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                   namespace="Bunian.Core.BusinessObjects"
                   assembly="Bunian.Core">

  <class name="ContactAddress" table="ContactAddresses">

    <id name="Id" column="ContactAddressId" unsaved-value="0">
      <generator class="native"/>
    </id>
    
    <property name="Type" column="AddressType" />
    <property name="AddressDetail" column="AddressText" type="System.String" />

    <many-to-one name="ContactInfo" column="ContactId" class="Contact" cascade="all" />
    
  </class>
</hibernate-mapping>